using System;

namespace Rhizome.Model
{
    public sealed class IfNull : PropertyCriterionBase<object>
    {
        public IfNull(string property) : base(property)
        {
        }

        public IfNull()
        {
        }

        protected override bool IsTrue(object value)
        {
            return value == null;
        }
    }
}